package com.example.experiment2.adapterPattern;

public class Wash implements ThreeElectricOutlet{
    String name;
    public Wash(){
        name="黄河电视机";
    }

    public Wash(String name){
        this.name=name;
    }

    public void connectElectricCurrent(){
        turnOn();
    }

    public void turnOn(){
        System.out.println(name +"开始洗衣物。");
    }

}

